package com.yiwei.jmx.api.bean;

import android.text.TextUtils;

import com.yiwei.jmx.util.ToastUtil;

import java.util.List;

/**
 * Created by xsooy-pc on 18-10-9.
 */

public class SuggestBean {

    /**
     * type : 新功能意见
     * content : 建议建议建议建议建议建议建议建议
     * phone : 13622660671
     * photos : ["http://xxxx.jpg","http://xxxx.jpg","http://xxxx.jpg","http://xxxx.jpg"]
     */

    public String type;
    public String content;
    public String phone;
    public List<String> photos;

    public boolean checkAll() {
        if (TextUtils.isEmpty(type)) {
            ToastUtil.makeTipsText("请选择反馈类型");
            return false;
        }
        if (TextUtils.isEmpty(content)) {
            ToastUtil.makeTipsText("请输入反馈内容");
            return false;
        }
        if (photos == null || photos.size() == 0) {
            ToastUtil.makeTipsText("请上传截图");
            return false;
        }
        return true;
    }
}
